function request(options){
  return new Promise((resovle,reject)=>{
    wx.request({
      url: 'http://192.168.3.39:8080'+options.url,
      method:options.method,
      data:options.data,
      header:options.header,
      success:(res)=>{
        resovle(res);
      },
      fail:(err)=>{
        reject(err)
      }
    })
  })

}
export default request;